home *** CD-ROM | disk | FTP | other *** search
- RIR - Rock dIRectory 1.2
-
-
- Purpose
-
- Rock Directory (RIR) is a substitute command for DOS's
- directory (DIR) with several additions. The syntax and
- output of RIR is virtually identical to that of DOS's "DIR"
- command, making it easy to learn.
-
-
- Uses
-
- RIR accepts the /W and /P parameters just as DOS's DIR
- command does. RIR is of great use to those who have a large
- number of compressed files. Its automatic detection of
- compressed files makes it easier to use than most methods of
- viewing the contents of compressed files; it displays them
- along with a directory's other files. It also shows
- additional information as listed below.
-
- The features RIR provides that DIR does not are:
-
- A single key can be used to pause/restart the display,
- and ESC can be used to halt the display, as with many of
- the other Rock utilities.
-
- RIR displays the contents of compressed files, such as
- ".ARC" and ".ZIP" files.
-
- RIR can display directory listings with two files per
- line if desired (use the /2 option).
-
- RIR allows you to display files in lower case (/AL
- option), display hidden files (/H option), show times in
- 24-hour format (/24 option), and display file attributes
- (/FA option) if you prefer those features in directory
- listings.
-
- RIR will display file descriptions created with Norton's
- FI or 4-DOS's DESCRIBE programs.
-
- RIR will also list the size & palette range of ".GIF" and
- ".PCX" image files. It can optionally list the memory
- required to run .EXE files (/EC option).
-
- Default parameters can be set through the /RIRCMD
- environment variable (see below for an explanation).
-
- Compressed Files
-
- The compressed file formats that RIR can decipher are:
-
- .ARC, .DWC, .LBR, .LZH, .LZS, .MD, .PKA, .PAK, .ZIP, .ZOO
-
- Note that RIR does not decode self-extracting compressed
- files, which end in .COM or .EXE.
-
-
- What are compressed files?
-
- Not everyone uses, or needs to use, compressed files. This
- section is for those who are confused by what the term
- "compressed file" means.
-
- A compressed file is a single file created to store one or
- more other files in a "compressed" format to save space. A
- special compression/decompression program is required to do
- this, such as "ARC" or "PKZIP," both available from most
- shareware distribution sources or bulletin board systems.
-
- Compression is used for several reasons; to save space with
- old files that are rarely used, to fit a lot of data on
- floppy disks, or to send file through telephone lines more
- quickly. You might squeeze five 100K text files into a
- single 200K compressed file, store it on a floppy, and when
- you need it again, decompress it into the original five
- files. Those who download files with modems usually receive
- the files in a compressed form - it's faster to download
- smaller files, and with some systems, time is money!
-
- It's often convenient to view the contents of compressed
- files without actually decompressing them. Most
- decompression programs can show the contents of files
- compressed in their own format, but each compression program
- has its own file format. RIR shows you the contents of many
- formats of compressed files.
-
- Syntax
-
- RIR [d:][path][filespec] [options]
-
- Options
- /? Show the syntax and standard options
- /P Pause every screenful (just like with DIR)
- /W Display in Wide format (5 files per line)
- /2 Display two files per line instead of one
- /T Text lines only, e.g. <-- instead of ──
- /H Show "hidden" files also
- /XTRA Show even more options, for power users!
- /INFO Show information about the Rock utilities
-
-
- Examples
- rir Show current dir, with compressed files
- rir /p Show current dir, pausing every screen
- rir c:\new\*.* Show files in the directory c:\new
- rir /w Show current directory, 5 files per line
- rir a: /2 Show directory of A:, 2 files per line
-
-
- Control Keys
- ESC Stop the program immediately
- Others Pause the program until next key pressed
-
-
- The following options are given when you run RIR with the
- /XTRA option. They're for those who really want to tailor the
- appearance of directory listings.
-
- /24 Show times in 24-hour mode instead of 12-hour mode
- /AU All Upper case names for files/directories
- /AL All Lower case names for files/directories
- /ALF All Lower case names for Files (but not directories)
- /NC No Comments (right half of display in normal listing)
- /N4D No 4-Dos comments (ignore 4-DOS file descriptions)
- /NFI No FI comments (ignore Norton FI file descriptions)
- /NCF No Compressed File comments (# & size of contents)
- /NV No Volume label displayed at top of directory
- /NH No header at top at all (no program name, volume)
- /EC EXE comments - show memory required to run EXE files
- /JFS Just Free Space (just give bytes free at end)
- /FA Show file attributes of all files/directories
-
- Environment Variables
-
- An environment variable is a piece of information you record
- from the DOS command line to be used by various programs.
- Each environment variable consists of a one-word name and an
- associated value for the variable, generally a set of words
- or symbols. If you type "SET" from the DOS command line,
- you'll see your current environment variables. Common ones
- include "prompt" and "path", usually set in an autoexec.bat
- file. Most DOS handbooks contain a more in-depth discussion
- of environment variables and their typical uses.
-
- To set an environment variable, you type something like "SET
- NAME WHATEVER VALUE", creating a variable called "NAME" with
- the associated value "WHATEVER VALUE", which resides in DOS
- memory until you turn your machine off. If you type "SET"
- now, DOS will list "NAME" along with any previously set
- environment variables.
-
- How does RIR use environment variables? If you use certain
- options almost always, you can save typing by setting a
- variable called "RIRCMD" with the options you typically use
- with RIR. Every time you run RIR, it will first check the
- RIRCMD variable to see if you set any options that you want
- used every time you run RIR.
-
- For example, type "SET RIRCMD /P /24" from the DOS command
- line to have RIR use the /P and /24 options until you turn
- the system off, or add it to your autoexec.bat to set the
- parameters each time you boot your system, so RIR will always
- use the /P and /24 options.
-
-
- Customizing output
-
- If you have several sets of default options that you like to
- use with RIR, here are two suggestions. One is to have
- separate batch files that run RIR with a particular set of
- command-line options, for example "WDIR.BAT" might contain
- the line "RIR %1 /W /P /AL". Another approach is to have
- batch files that set the RIRCMD environment variable, for
- example "WDIR.BAT" could similarly contain the line "SET
- RIRCMD /W /P /AL", so that after you run wdir once, you can
- just run RIR, and it will use those parameters.
-
- File Attributes
-
- If you use the /FA parameter, each file will be followed by a
- pair of bracket with attribute codes between them, such as
- "[RHSVDA]".
-
- In practice, only some of the letters will appear between any
- particular pair of brackets, as some letters are mutually
- exclusive. The letters stand for the following file
- attributes:
-
- R - Read only H - Hidden S - System
- V - Volume D - Directory A - Archive
-
- As an example of mutually exclusive file attributes, a Volume
- cannot be a Directory, so V and D will never appear within
- the same pair of brackets.
-
-
- Next Version
-
- Two extensions are planned for the next version of RIR. One
- is a recursive directory search, meaning you can use RIR to
- list a directory along with all of its subdirectories, and
- the other is directory sorting, so that you can display files
- sorted by name, extension, size, or date. If the version
- with these capabilities isn't finished by the time you
- register your copy of the Rock Utilities, we'll send you a
- free update disk with the newer version of RIR when it
- becomes available. Type "RIR /INFO" for information on the
- Rock Utils, or "RIR /ORDER" for an order form.
-
-
- Credits
-
- RIR's ompressed file directory routines came from several
- sources, including Phil Burn's PIBCAT, public domain disk
- cataloging system, and Don Williams' Fast File Find program.
-
- Example - show current directory
-
- The arrows following the extensions in the following examples
- indicate that the file is contained within the compressed
- file preceding it. In the example below, the file
- "TTOOLS.ZIP" contains the files "TTOOLS.TPU", "TTOOLS.PAS",
- and "READ.ME". Note that the default directory listing is
- easier to read than the listings with two or five-files per
- line. Also in the first example, two user-created file
- descriptions are listed; creating them requires other
- programs. The other three comments, to the right of the
- files, were created by RIR based on information in the file,
- for example the size and palette of the "GIF" (Graphic
- Interchange Format) image file.
-
- C:\DATA>rir
-
- RIR-Rock dIRectory 1.2, (C) 1991 Rock "RIR ?" for options
-
- Volume in drive C is Devel
- Volume Serial Number is 1515-15E1
- Directory of C:*.*
-
- . <DIR> 01-07-91 1:36a
- .. <DIR> 01-07-91 1:36a
- M GIF 191529 12-15-90 10:33a 800x600 256 colors
- BINOBJ EXE 11088 08-29-88 5:00a This comment made w/FI
- PRINT TP5 2917 07-21-89 11:27a This one made w/4-DOS
- FILEINFO FI 522 12-28-90 1:47a Contains 1 file comment
- TPC EXE 61926 05-02-89 5:50a
- TPUMOVER EXE 32784 08-29-88 5:00a
- TURBO EXE 156321 05-02-89 5:50a
- TURBO TPL 44352 05-02-89 5:50a
- TTOOLS ZIP╕ 26752 11-01-90 8:45p 3 files in 42974 bytes
- ttools tpu─┤ 34426 12-31-86 6:46p
- ttools pas─┤ 7309 12-31-86 6:42p
- read me ─┘ 1239 12-30-86 9:31p
- 11 File(s) 528191 bytes
- 6100992 bytes free
-
-
- Example - show in wide mode, no header (normally 5 files/line)
-
- C:\DATA>rir /w /nh
-
- . .. M GIF TEMP BAK
- BINOBJ EXE FILEINFO FI PRINT TP5 TPC EXE
- TPUMOVER EXE TURBO EXE TURBO TPL TTOOLS ZIP═══
- ttools tpu──ttools pas──read me
- 11 File(s) 528191 bytes
- 6100992 bytes free
-
-